from selenium import webdriver
from selenium.webdriver.common.by import By
import time
driver = webdriver.Edge()
driver.get('https://www.baidu.com/')
driver.find_element(By.ID,'kw').send_keys('非洲之心')
time.sleep(2)
driver.find_element(By.ID,'su').click()
time.sleep(2)
driver.execute_script('window.scrollTo(0,document.body.scrollTo.Height)')
time.sleep(2)
driver.find_element(By.XPATH,'/html/body/div[3]/div[3]/div[2]/div/div/a[2]/span').click()
time.sleep(2)


time.sleep(10)
driver.quit()